package com.sgb.knowledgeshare.view.adapter;

import android.content.Context;
import android.widget.TextView;
import com.sgb.knowledgeshare.BR;
import com.sgb.knowledgeshare.R;
import com.swgk.core.recyclerview.adapter.BaseRecycleAdapter;
import com.swgk.core.recyclerview.adapter.ItemViewHolder;
import com.swgk.core.view.entity.VideoTypeListEntity;
import java.util.List;

/**
 * Created by fq on 2020/9/16 0016
 * Description： 分类列表的展示
 */

public class VideoTypeListAdapter extends BaseRecycleAdapter<VideoTypeListEntity> {

    public VideoTypeListAdapter(Context context, List<VideoTypeListEntity> datas) {
        super(context, R.layout.item_video_type_list, datas);
    }

    @Override
    public void convert(ItemViewHolder holder, VideoTypeListEntity videoTypeListEntity) {
        holder.setBinding(BR.viewModel, videoTypeListEntity);
        TextView names = holder.itemView.findViewById(R.id.name);
       // TextView numbers = holder.itemView.findViewById(R.id.number);
        names.setText("#"+videoTypeListEntity.getName());
      //  numbers.setText(videoTypeListEntity.getSort()+"个视频");
    }
}
